home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / bin / mytouch next >
Encoding:
Text File  |  1990-08-16  |  176 b   |  10 lines

  1. #!/bin/csh -f
  2. set filename = $argv[1]
  3. if (-e $filename && ! -w $filename) then
  4.     chmod +w $filename
  5.     touch $filename
  6.     chmod -w $filename
  7. else
  8.     touch $filename
  9. endif
  10.